package com.woniu.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.finance.mapper.ApartDepositReceivableMapper;
import com.woniu.finance.domain.ApartDepositReceivable;
import com.woniu.finance.service.IApartDepositReceivableService;

/**
 * 应收押金Service业务层处理
 * 
 * @author yy
 * @date 2023-04-04
 */
@Service
public class ApartDepositReceivableServiceImpl implements IApartDepositReceivableService 
{
    @Autowired
    private ApartDepositReceivableMapper apartDepositReceivableMapper;

    /**
     * 查询应收押金
     * 
     * @param id 应收押金主键
     * @return 应收押金
     */
    @Override
    public ApartDepositReceivable selectApartDepositReceivableById(Long id)
    {
        return apartDepositReceivableMapper.selectApartDepositReceivableById(id);
    }

    /**
     * 查询应收押金列表
     * 
     * @param apartDepositReceivable 应收押金
     * @return 应收押金
     */
    @Override
    public List<ApartDepositReceivable> selectApartDepositReceivableList(ApartDepositReceivable apartDepositReceivable)
    {
        return apartDepositReceivableMapper.selectApartDepositReceivableList(apartDepositReceivable);
    }

    /**
     * 新增应收押金
     * 
     * @param apartDepositReceivable 应收押金
     * @return 结果
     */
    @Override
    public int insertApartDepositReceivable(ApartDepositReceivable apartDepositReceivable)
    {
        return apartDepositReceivableMapper.insertApartDepositReceivable(apartDepositReceivable);
    }

    /**
     * 修改应收押金
     * 
     * @param apartDepositReceivable 应收押金
     * @return 结果
     */
    @Override
    public int updateApartDepositReceivable(ApartDepositReceivable apartDepositReceivable)
    {
        return apartDepositReceivableMapper.updateApartDepositReceivable(apartDepositReceivable);
    }

    /**
     * 批量删除应收押金
     * 
     * @param ids 需要删除的应收押金主键
     * @return 结果
     */
    @Override
    public int deleteApartDepositReceivableByIds(Long[] ids)
    {
        return apartDepositReceivableMapper.deleteApartDepositReceivableByIds(ids);
    }

    /**
     * 删除应收押金信息
     * 
     * @param id 应收押金主键
     * @return 结果
     */
    @Override
    public int deleteApartDepositReceivableById(Long id)
    {
        return apartDepositReceivableMapper.deleteApartDepositReceivableById(id);
    }
}
